package lesson3;

import javax.swing.*;

public class EventListening {
    public static void main(String[] args) {
        MyFrame frame=new MyFrame("事件监听窗口");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(400,400);
        frame.setVisible(true);
    }
}
